Page({
    toDetail(){
        wx.navigateTo({
          url: '/pages/detail/detail?id=1001&address=未央区',
          success:function(){
              console.log("成功")
          }
        })
    },
    //跳转tabBar页面
    toMy(){
        wx.switchTab({
          url: '/pages/my/my?id=1002',
        })
    },
    //跳转my页面，用reLaunch携带参数
    reLaynchMy(){
        wx.reLaunch({
          url: '/pages/my/my?id=1002',
        })
    }
})